package com.baichang.taoshunda.entity;

import com.baichang.framework.annotation.jdbc.Generator;
import com.baichang.framework.annotation.jdbc.Id;
import com.baichang.framework.annotation.jdbc.Table;
import com.baichang.framework.entity.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;


@Table(name = "t_red_packet_history")
public class RedPacketHistory extends BaseEntity {

    /**
     * 历史编号
     **/
    private Integer id;
    /**
     * 用户抢的金额
     **/
    private BigDecimal userMoney;
    /**
     * 发布红包的商家
     **/
    private Integer companyId;
    /**
     * 抢的用户
     **/
    private Integer userId;
    /**
     * 红包编号
     **/
    private Integer redId;
    /**
     * 用户抢包时间
     **/
    private Date userTime;
    /**
     * 手气最佳
     **/
    private Integer isMax;
    /**
     * 手速最快
     **/
    private Integer isFirst;
    /**
     * 手速最快
     **/
    private String trendsUserId;

    /**
     * 历史编号
     **/
    @Id
    @Generator
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 用户抢的金额
     **/
    public BigDecimal getUserMoney() {
        return userMoney;
    }

    public void setUserMoney(BigDecimal userMoney) {
        this.userMoney = userMoney;
    }

    /**
     * 发布红包的商家
     **/
    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    /**
     * 抢的用户
     **/
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 红包编号
     **/
    public Integer getRedId() {
        return redId;
    }

    public void setRedId(Integer redId) {
        this.redId = redId;
    }

    /**
     * 用户抢包时间
     **/
    public Date getUserTime() {
        return userTime;
    }

    public void setUserTime(Date userTime) {
        this.userTime = userTime;
    }

    /**
     * 手气最佳
     **/
    public Integer getIsMax() {
        return isMax;
    }

    public void setIsMax(Integer isMax) {
        this.isMax = isMax;
    }

    /**
     * 手速最快
     **/
    public Integer getIsFirst() {
        return isFirst;
    }

    public void setIsFirst(Integer isFirst) {
        this.isFirst = isFirst;
    }

    public String getTrendsUserId() {
        return trendsUserId;
    }

    public void setTrendsUserId(String trendsUserId) {
        this.trendsUserId = trendsUserId;
    }
}